package com.yanqu.road.server.cmd.wingroom;

import com.yanqu.road.server.cmd.CrossCommand;
import com.yanqu.road.server.command.Cmd;
import com.yanqu.road.server.manager.workshop.WorkShopMgr;
import com.yanqu.road.message.YanQuMessage;
import com.yanqu.road.server.protocol.CrossProtocol;

/**
 * @author ：zfr
 * @date ：2022/2/24 10:01
 */
@Cmd(code = CrossProtocol.C_WING_ROOM_SYNC_WORK_SHOP_POOL, desc = "同步工坊")
public class SyncWorkShopPoolCmd extends CrossCommand {

    @Override
    public boolean parseData(YanQuMessage packet) throws Exception {
        return true;
    }

    @Override
    public void execute(YanQuMessage packet) throws Exception {
        WorkShopMgr.syncServerWorkShopPool(serverId);
    }

    @Override
    public void sendData() {

    }
}
